package acwing._2LanQiao._11No11;
/**
 * @Project : AlgorithmLearning
 * @Package : ACWing._2LanQiao._11No11
 * @File : Q2067.java
 * @Author : WangRuoyu
 * @Date : 2023/3/27 17:16
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Q2067 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] words = br.readLine().split(" ");

        int n = Integer.parseInt(words[0]);
        int m = Integer.parseInt(words[1]);
        int[][] f = new int[n][m];
        f[0][0] = 1;
        for (int i = 0; i < n; ++i) {
            for (int j = 0; j < m; ++j) {
                if (i % 2 == 1 && j % 2 == 1) {
                    f[i][j] = 0;
                } else {
                    if (i > 0) {
                        f[i][j] += f[i - 1][j];
                    }
                    if (j > 0) {
                        f[i][j] += f[i][j - 1];
                    }
                }
            }
        }
        System.out.println(f[n-1][m-1]);
    }
}
